package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 *
 * @author WeiZiDong
 */
@Table(name = "`sys_sms`")
@Data
@ApiModel("")
public class SysSms implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "ID", example = "String")
    private String id;
    @Column(name = "`es_title`")
    @ApiModelProperty(value = "消息标题", example = "String")
    private String esTitle;
    @Column(name = "`es_type`")
    @ApiModelProperty(value = "发送方式：1短信2邮件3微信", example = "String")
    private String esType;
    @Column(name = "`es_receiver`")
    @ApiModelProperty(value = "接收人", example = "String")
    private String esReceiver;
    @Column(name = "`es_param`")
    @ApiModelProperty(value = "发送所需参数Json格式", example = "String")
    private String esParam;
    @Column(name = "`es_content`")
    @ApiModelProperty(value = "推送内容", example = "默认值")
    private String esContent;
    @Column(name = "`es_send_time`")
    @ApiModelProperty(value = "推送时间", example = "2019-05-05 17:55:31")
    private Date esSendTime;
    @Column(name = "`es_send_status`")
    @ApiModelProperty(value = "推送状态0未推送1推送成功2推送失败-1失败不再发送", example = "String")
    private String esSendStatus;
    @Column(name = "`es_send_num`")
    @ApiModelProperty(value = "发送次数超过5次不再发送", example = "1")
    private Integer esSendNum;
    @Column(name = "`es_result`")
    @ApiModelProperty(value = "推送失败原因", example = "String")
    private String esResult;
    @Column(name = "`remark`")
    @ApiModelProperty(value = "备注", example = "String")
    private String remark;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人登录名称", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建日期", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人登录名称", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新日期", example = "2019-05-05 17:55:31")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
